package com.guochaojava;

import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.lang.Console;

import java.util.Date;

/**
 * @author guochao
 * @since 1.0.0
 */
public class Dttet {
    public static void main(String[] args) {

        DateTime nows = new DateTime(new Date());


        String date = "2018-07-09 19:56:05";
        DateTime time =DateUtil.parse(date);
        Console.log(time.dayOfMonth());
        Console.log(time.hour(false));
        String data2 = "07月09日 上午 09:56";
        Console.log(data2);
    }
}